home *** CD-ROM | disk | FTP | other *** search
- #define INPUT_STATUS_1 03dah //Input Status 1 register
-
-
-
- /* wait for vertical sync */
- /* ---------------------- wait_vert() -------------------- March 27,1993 */
- void wait_vert(void)
- {
- asm {
- mov dx,INPUT_STATUS_1
- }
- WaitVS:
- asm {
- in al,dx
- test al,08h
- jz WaitVS /* vertical sync is active high (1 = active) */
- }
- }
-
- /* wait for vertical sync */
- /* ---------------------- wait_vert() -------------------- March 27,1993 */
- void wait_not_vert(void)
- {
- asm {
- mov dx,INPUT_STATUS_1
- }
- WaitVS:
- asm {
- in al,dx
- test al,08h
- jnz WaitVS /* vertical sync is active high (1 = active) */
- }
- }
-
-